package com.itheima.provider.service;

import com.itheima.provider.dao.GoodDao;
import com.itheima.provider.domain.Goods;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
 * 业务层
 * */
@Service//业务层bean
public class GoodService {
    @Autowired
    private GoodDao goodDao;


    /**
     * 根据id查询
     * */
    public Goods find(int id) {
        return goodDao.find(id);
    }

}
